import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const listDictType = (data) => request({
    url: baseUrl + '/system/dict-type/list',
    method: 'get',
    params: data
});


export const addDictType = (data) => request({
    url: baseUrl + '/system/dict-type',
    method: 'post',
    data: data
});


export const updateDictType = (data) => request({
    url: baseUrl + '/system/dict-type',
    method: 'put',
    data: data
});


export const delDictType = (dictTypeId) => request({
    url: baseUrl + '/system/dict-type/'+dictTypeId,
    method: 'delete'
});